<div id="wr_banner" class="slider-wrapper theme-default">
    <?php
    echo $this->Html->script('frontend/jquery-1.9.0.min');
    echo $this->Html->css('frontend/nivo-slider');
    echo $this->Html->script('frontend/jquery.nivo.slider');
    echo $this->Html->css('frontend/themes/default/default');
   
    
    ?>
    <div id="slider" class="nivoSlider">
        <?php
        $banners = $this->requestAction("/Banners/getAllBanner");
        if (!empty($banners)) {
            foreach ($banners as $val) {
                ?>
         <img src="<?php echo $val['Banner']['full_path'];?>" alt="<?php echo $val['Banner']['banner_name']?>" />
                <?php
            }
        }
         ?>
      
    </div>
    <script type="text/javascript">
        $(window).load(function() {
            $('#slider').nivoSlider({
                controlNav: false,
            });
        });
    </script>


</div>

